package com.zkthink.ceres.product.vo;

import com.zkthink.ceres.promotion.vo.web.PromotionShowVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Collections;
import java.util.List;

@ApiModel("商品列表对象")
@Data
public class ProductPageVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("商品列表")
    private List<ProductVO> productVOList;

    @ApiModelProperty("商品符合的营销活动的列表")
    private List<PromotionShowVO> promotionShowVOList;

    @ApiModelProperty("总数")
    private Integer total;

    public ProductPageVO(){
        this.total = 0;
        this.productVOList = Collections.emptyList();
    }

    public ProductPageVO(Integer total, List<ProductVO> productVOList){
        this.total = total;
        this.productVOList = productVOList;
    }

    public ProductPageVO(Integer total, List<ProductVO> productVOList, List<PromotionShowVO> promotionShowVOList){
        this.total = total;
        this.productVOList = productVOList;
        this.promotionShowVOList = promotionShowVOList;
    }

}
